package com.sky.mapper;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {
    /**
     * 根据菜品id查询对应的套餐
     * @param dishIds
     * @return
     */
    // SELECT setmeal_id FROM setmeal_dish WHERE dish_id IN (?,?,?)
    //因为参数不确定，所以需要使用动态sql，配置在SetmealDishMapper.xml文件中
    List<Long> getSetmealIdsByDishIds(List<Long> dishIds);
}
